package com.shanghai.entity;

import java.io.Serializable;

public class Admin implements Serializable {
    private Integer fId;

    private String fUsername;

    private String fPassword;

    private String fSex;

    private static final long serialVersionUID = 1L;

    public Integer getfId() {
        return fId;
    }

    public void setfId(Integer fId) {
        this.fId = fId;
    }

    public String getfUsername() {
        return fUsername;
    }

    public void setfUsername(String fUsername) {
        this.fUsername = fUsername == null ? null : fUsername.trim();
    }

    public String getfPassword() {
        return fPassword;
    }

    public void setfPassword(String fPassword) {
        this.fPassword = fPassword == null ? null : fPassword.trim();
    }

    public String getfSex() {
        return fSex;
    }

    public void setfSex(String fSex) {
        this.fSex = fSex == null ? null : fSex.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Admin other = (Admin) that;
        return (this.getfId() == null ? other.getfId() == null : this.getfId().equals(other.getfId()))
            && (this.getfUsername() == null ? other.getfUsername() == null : this.getfUsername().equals(other.getfUsername()))
            && (this.getfPassword() == null ? other.getfPassword() == null : this.getfPassword().equals(other.getfPassword()))
            && (this.getfSex() == null ? other.getfSex() == null : this.getfSex().equals(other.getfSex()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getfId() == null) ? 0 : getfId().hashCode());
        result = prime * result + ((getfUsername() == null) ? 0 : getfUsername().hashCode());
        result = prime * result + ((getfPassword() == null) ? 0 : getfPassword().hashCode());
        result = prime * result + ((getfSex() == null) ? 0 : getfSex().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fId=").append(fId);
        sb.append(", fUsername=").append(fUsername);
        sb.append(", fPassword=").append(fPassword);
        sb.append(", fSex=").append(fSex);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}